package question3;

public abstract class Animal extends Food {
    private String breed;
    private int price;

    public Animal() {
    }

    public Animal(String name, int weight, String breed, int price) {
        super(name, weight);
        this.breed = breed;
        this.price = price;
    }

    public String getBreed() {
        return breed;
    }

    public void setBreed(String breed) {
        this.breed = breed;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
